package com.lmk;

import java.util.Scanner;

public class Pay {
    public static void main(String[] args) {
        int shirt=100;
        int  football=500;
        int  basketball=150;
        int c=0;
        int d=0;
        int e=0;
        int x = 4;
        int y = (--x)+(x--)+(x*10);//26
        System.out.println("x = " + x + ",y = " + y);
        System.out.println(y);
        Scanner sc=new Scanner(System.in);

        System.out.println("请输入T恤数量：");
        c=sc.nextInt();

        System.out.println("请输入球鞋数量" );
        d=sc.nextInt();

        System.out.println("请输入篮球数量" );
        e=sc.nextInt();
        int w=c*shirt+d*football+e*basketball;
        System.out.println("计算消费金额："+w);
        System.out.println("八折后价格:"+w*0.8);

    }
}
